package demo6;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component
@Scope("prototype")//使用@Scope注解来指明是使用单例(singleton)还是多例(prototype)
public class Person {
}
